package com.example.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "email-server", url = "http://localhost:8085")
public interface EmailClient {
    @GetMapping("/email/send")
    void sendEmail(@RequestParam("email") String email,@RequestParam("text") String text);

    @GetMapping("/email/qrcode")
    ResponseEntity<byte[]> generateQRCode(@RequestParam("qq") String qq);
}
